package sourceCode;

import java.awt.geom.Point2D;


public class Bagage extends Element {

    private static int lastId = 0;

    /**
     * @attribute
     */
    protected Noeud destination;
    private ConteneurBagages conteneur;
    private Chariot chariot;

    Bagage(Guichet g, Noeud _destination) {
        super(Bagage.lastId++, new Point2D.Double(g.getCentreTapis().x, g.getCentreTapis().y));
        this.destination = _destination;
        this.conteneur = g;
    }

    public void setDestination(Noeud destination) {
        this.destination = destination;
    }

    public Noeud getDestination() {
        return destination;
    }

    public void setConteneur(ConteneurBagages conteneur) {
        this.conteneur = conteneur;
    }

    public ConteneurBagages getConteneur() {
        return conteneur;
    }

    public void setChariot(Chariot chariot) {
        this.chariot = chariot;
    }

    public Chariot getChariot() {
        return chariot;
    }
}
